Skip to content

Add .NET SDK support for new lifecycle event types#218

Open
eddie-lee-msft wants to merge 2 commits intomainfrom
user/edle/NewLifecycleEventsInDotNet
Open

Add .NET SDK support for new lifecycle event types#218
eddie-lee-msft wants to merge 2 commits intomainfrom
user/edle/NewLifecycleEventsInDotNet

Conversation

@eddie-lee-msft
Copy link
Copy Markdown

Add .NET SDK support for new lifecycle event types

Copilot AI review requested due to automatic review settings March 19, 2026 20:53
@eddie-lee-msft eddie-lee-msft requested a review from a team as a code owner March 19, 2026 20:53
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 19, 2026

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds new Agent 365 lifecycle event support to the Notifications SDK so consumers can validate and register handlers for additional agentic user lifecycle notifications.

Changes:

  • Added new lifecycle event constants: agentic user undeleted, identity updated, and manager updated.
  • Expanded lifecycle event validation to recognize the new event types.
  • Introduced new AgentApplication extension methods to register handlers for each new lifecycle event.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/Notification/Microsoft.Agents.A365.Notifications/Constants.cs Adds new Events.* string constants for additional lifecycle event types.
src/Notification/Microsoft.Agents.A365.Notifications/AgentNotification.cs Updates lifecycle event validation and adds new registration extension methods for the new events.

Comment on lines 159 to 165
Events.AgenticUserIdentityCreated => true,
Events.AgenticUserWorkloadOnboardingUpdated => true,
Events.AgenticUserDeleted => true,
Events.AgenticUserUndeleted => true,
Events.AgenticUserIdentityUpdated => true,
Events.AgenticUserManagerUpdated => true,
_ => false,
Copy link

Copilot AI Mar 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New lifecycle event types were added to the SDK's validation logic, but there are currently no unit tests covering lifecycle event validation (unlike subchannel validation). Adding tests that assert these new Events constants are accepted by the lifecycle-event validation would help prevent regressions when new event types are introduced.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does not even look like there are unit tests today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants